package heima3_2.cn.osc.ui.message_fragment;

import android.support.v4.app.FragmentActivity;

import heima3_2.cn.osc.base.MyBaseAdapter;
import heima3_2.cn.osc.base.OurTabBaseFragment;
import heima3_2.cn.osc.presenter.FansFriendsPresenter;
import heima3_2.cn.osc.ui.adapter.AttentionAdapter;

/**
 * Created by yaozhanlie on 2017/1/18.
 */

public class FansFragment extends OurTabBaseFragment {

    private FansFriendsPresenter mFansFriendsPresenter;

    @Override
    protected MyBaseAdapter getAdapter(FragmentActivity activity, Object o) {
        return new AttentionAdapter(activity,null);
    }

    @Override
    public void initPresenter() {
        mFansFriendsPresenter = new FansFriendsPresenter(this);
        mFansFriendsPresenter.getData(0);
    }

    @Override
    public void getMoreData() {
        mFansFriendsPresenter.getData(index++);
    }
}
